<?php if (!defined('BASEPATH')) exit ('No direct script access allowed');
class Access_Controller extends CI_Controller
{
	function __construct()
	{
		parent::__construct();
		if(!$this->access->is_login())
		{
			redirect('administrator/login');
		}
	//bisa ditambah fungsionalitas lain
	}
	function is_login()
	{
		return $this->access->is_login();
	}
}

class MY_Controller extends CI_Controller
{
	function __construct()
	{
		parent::__construct();
	}
}